home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / SndPlay1.c < prev    next >
MacBinary  |  1996-06-06  |  6.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: SndPlay1.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jun 6 04:36:49 1996, modified Thu Jun 6 04:36:49 1996, creator 'CWIE', type ASCII, 5428 bytes "SndPlay1.c" , at 0x15b4 548 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6e 64 50 6c 61 | 79 31 2e 63 00 00 00 00 |..SndPla|y1.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 15 34 00 | 00 02 24 ad dc 49 21 ad |......4.|..$..I!.|
|00000060| dc 49 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.I!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 44 7f 00 00 |........|....D...|
|00000080| 2f 2a 20 0d 53 6e 64 50 | 6c 61 79 31 2e 63 0d 0d |/* .SndP|lay1.c..|
|00000090| 53 6e 64 50 6c 61 79 31 | 28 73 6e 64 29 20 70 6c |SndPlay1|(snd) pl|
|000000a0| 61 79 73 20 61 20 73 6f | 75 6e 64 2c 20 61 73 79 |ays a so|und, asy|
|000000b0| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2c 20 69 2e 65 |nchronou|sly, i.e|
|000000c0| 2e 20 69 74 20 72 65 74 | 75 72 6e 73 20 69 6d 6d |. it ret|urns imm|
|000000d0| 65 64 69 61 74 65 6c 79 | 2c 20 77 68 69 6c 65 20 |ediately|, while |
|000000e0| 74 68 65 0d 73 6f 75 6e | 64 20 69 73 20 73 74 69 |the.soun|d is sti|
|000000f0| 6c 6c 20 70 6c 61 79 69 | 6e 67 2e 20 54 68 65 20 |ll playi|ng. The |
|00000100| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 61 20 68 61 |argument| is a ha|
|00000110| 6e 64 6c 65 20 74 6f 20 | 61 20 73 6e 64 20 72 65 |ndle to |a snd re|
|00000120| 73 6f 75 72 63 65 2e 20 | 49 66 20 61 20 73 6f 75 |source. |If a sou|
|00000130| 6e 64 20 69 73 20 0d 73 | 74 69 6c 6c 20 70 6c 61 |nd is .s|till pla|
|00000140| 79 69 6e 67 20 66 72 6f | 6d 20 61 20 70 72 65 76 |ying fro|m a prev|
|00000150| 69 6f 75 73 20 63 61 6c | 6c 20 74 6f 20 53 6e 64 |ious cal|l to Snd|
|00000160| 50 6c 61 79 31 2c 20 69 | 74 20 69 73 20 61 6c 6c |Play1, i|t is all|
|00000170| 6f 77 65 64 20 74 6f 20 | 66 69 6e 69 73 68 20 62 |owed to |finish b|
|00000180| 65 66 6f 72 65 0d 53 6e | 64 50 6c 61 79 31 20 63 |efore.Sn|dPlay1 c|
|00000190| 6c 6f 73 65 73 20 61 6e | 64 20 72 65 6f 70 65 6e |loses an|d reopen|
|000001a0| 73 20 74 68 65 20 63 68 | 61 6e 6e 65 6c 20 61 6e |s the ch|annel an|
|000001b0| 64 20 62 65 67 69 6e 73 | 20 74 68 65 20 6e 65 77 |d begins| the new|
|000001c0| 20 73 6f 75 6e 64 2e 0d | 53 6e 64 50 6c 61 79 31 | sound..|SndPlay1|
|000001d0| 28 4e 55 4c 4c 29 20 77 | 61 69 74 73 20 66 6f 72 |(NULL) w|aits for|
|000001e0| 20 61 6e 79 20 70 72 65 | 76 69 6f 75 73 6c 79 20 | any pre|viously |
|000001f0| 53 6e 64 50 6c 61 79 31 | 2d 69 6e 69 74 69 61 74 |SndPlay1|-initiat|
|00000200| 65 64 20 73 6f 75 6e 64 | 20 74 6f 20 65 6e 64 20 |ed sound| to end |
|00000210| 61 6e 64 20 74 68 65 6e | 20 63 6c 6f 73 65 73 20 |and then| closes |
|00000220| 74 68 65 20 63 68 61 6e | 6e 65 6c 2e 0d 53 6e 64 |the chan|nel..Snd|
|00000230| 53 74 6f 70 31 28 29 20 | 63 6c 6f 73 65 73 20 74 |Stop1() |closes t|
|00000240| 68 65 20 63 68 61 6e 6e | 65 6c 20 69 6d 6d 65 64 |he chann|el immed|
|00000250| 69 61 74 65 6c 79 2e 0d | 53 6e 64 44 6f 6e 65 31 |iately..|SndDone1|
|00000260| 28 29 20 72 65 74 75 72 | 6e 73 20 74 72 75 65 20 |() retur|ns true |
|00000270| 69 66 20 74 68 65 20 6c | 61 73 74 20 73 6f 75 6e |if the l|ast soun|
|00000280| 64 20 69 6e 69 74 69 61 | 74 65 64 20 62 79 20 53 |d initia|ted by S|
|00000290| 6e 64 50 6c 61 79 31 28 | 29 20 68 61 73 20 66 69 |ndPlay1(|) has fi|
|000002a0| 6e 69 73 68 65 64 2e 0d | 0d 41 70 70 6c 65 20 61 |nished..|.Apple a|
|000002b0| 64 76 69 73 65 73 20 61 | 67 61 69 6e 73 74 20 6c |dvises a|gainst l|
|000002c0| 65 61 76 69 6e 67 20 74 | 68 65 20 63 68 61 6e 6e |eaving t|he chann|
|000002d0| 65 6c 20 6f 70 65 6e 20 | 66 6f 72 20 65 78 74 65 |el open |for exte|
|000002e0| 6e 64 65 64 20 70 65 72 | 69 6f 64 73 2c 20 62 65 |nded per|iods, be|
|000002f0| 63 61 75 73 65 20 74 68 | 65 20 6f 70 65 6e 20 0d |cause th|e open .|
|00000300| 63 68 61 6e 6e 65 6c 20 | 62 6c 6f 63 6b 73 20 53 |channel |blocks S|
|00000310| 79 73 42 65 65 70 2e 20 | 54 6f 20 6d 69 6e 69 6d |ysBeep. |To minim|
|00000320| 69 7a 65 20 74 68 69 73 | 2c 20 6d 61 6b 65 20 73 |ize this|, make s|
|00000330| 75 72 65 20 74 6f 20 63 | 61 6c 6c 20 53 6e 64 50 |ure to c|all SndP|
|00000340| 6c 61 79 31 28 4e 55 4c | 4c 29 20 6f 72 20 53 6e |lay1(NUL|L) or Sn|
|00000350| 64 53 74 6f 70 31 28 29 | 20 0d 74 6f 20 63 6c 6f |dStop1()| .to clo|
|00000360| 73 65 20 74 68 65 20 63 | 68 61 6e 6e 65 6c 20 77 |se the c|hannel w|
|00000370| 68 65 6e 20 79 6f 75 20 | 6e 6f 20 6c 6f 6e 67 65 |hen you |no longe|
|00000380| 72 20 6e 65 65 64 20 69 | 74 2e 0d 0d 54 68 65 20 |r need i|t...The |
|00000390| 65 61 73 69 65 73 74 20 | 77 61 79 20 74 6f 20 67 |easiest |way to g|
|000003a0| 65 74 20 61 20 73 6f 75 | 6e 64 20 74 68 61 74 20 |et a sou|nd that |
|000003b0| 79 6f 75 20 63 61 6e 20 | 70 6c 61 79 20 69 73 20 |you can |play is |
|000003c0| 74 6f 20 63 61 6c 6c 20 | 47 65 74 4e 61 6d 65 64 |to call |GetNamed|
|000003d0| 52 65 73 6f 75 72 63 65 | 28 29 2e 20 0d 48 65 72 |Resource|(). .Her|
|000003e0| 65 27 73 20 61 20 63 6f | 6d 70 6c 65 74 65 20 70 |e's a co|mplete p|
|000003f0| 72 6f 67 72 61 6d 20 74 | 6f 20 67 65 74 20 61 20 |rogram t|o get a |
|00000400| 73 6f 75 6e 64 20 61 6e | 64 20 70 6c 61 79 20 69 |sound an|d play i|
|00000410| 74 2e 0d 09 48 61 6e 64 | 6c 65 20 73 6e 64 3b 0d |t...Hand|le snd;.|
|00000420| 09 73 6e 64 3d 47 65 74 | 4e 61 6d 65 64 52 65 73 |.snd=Get|NamedRes|
|00000430| 6f 75 72 63 65 28 27 73 | 6e 64 20 27 2c 22 5c 70 |ource('s|nd ',"\p|
|00000440| 53 69 6d 70 6c 65 20 42 | 65 65 70 22 29 3b 0d 09 |Simple B|eep");..|
|00000450| 53 6e 64 50 6c 61 79 31 | 28 73 6e 64 29 3b 09 2f |SndPlay1|(snd);./|
|00000460| 2f 20 73 74 61 72 74 20 | 73 6e 64 20 70 6c 61 79 |/ start |snd play|
|00000470| 69 6e 67 2c 20 61 6e 64 | 20 72 65 74 75 72 6e 20 |ing, and| return |
|00000480| 69 6d 6d 65 64 69 61 74 | 65 6c 79 2c 20 77 68 69 |immediat|ely, whi|
|00000490| 6c 65 20 69 74 27 73 20 | 70 6c 61 79 69 6e 67 0d |le it's |playing.|
|000004a0| 09 2f 2f 20 64 6f 20 73 | 6f 6d 65 74 68 69 6e 67 |.// do s|omething|
|000004b0| 20 75 73 65 66 75 6c 20 | 68 65 72 65 0d 09 53 6e | useful |here..Sn|
|000004c0| 64 50 6c 61 79 31 28 4e | 55 4c 4c 29 3b 09 2f 2f |dPlay1(N|ULL);.//|
|000004d0| 20 77 61 69 74 20 74 69 | 6c 6c 20 73 6e 64 20 69 | wait ti|ll snd i|
|000004e0| 73 20 64 6f 6e 65 2c 20 | 74 68 65 6e 20 63 6c 6f |s done, |then clo|
|000004f0| 73 65 20 61 6e 64 20 64 | 69 73 70 6f 73 65 20 6f |se and d|ispose o|
|00000500| 66 20 73 6f 75 6e 64 20 | 63 68 61 6e 6e 65 6c 0d |f sound |channel.|
|00000510| 09 52 65 6c 65 61 73 65 | 52 65 73 6f 75 72 63 65 |.Release|Resource|
|00000520| 28 73 6e 64 29 3b 0d 49 | 74 27 73 20 61 6c 73 6f |(snd);.I|t's also|
|00000530| 20 65 61 73 79 20 74 6f | 20 63 72 65 61 74 65 20 | easy to| create |
|00000540| 79 6f 75 72 20 6f 77 6e | 20 73 6e 64 20 69 6e 20 |your own| snd in |
|00000550| 6d 65 6d 6f 72 79 2c 20 | 61 73 20 61 20 73 65 72 |memory, |as a ser|
|00000560| 69 65 73 20 6f 66 20 63 | 6f 6d 6d 61 6e 64 73 2c |ies of c|ommands,|
|00000570| 0d 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 68 65 20 69 |.followi|ng the i|
|00000580| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 69 6e 20 49 |nstructi|ons in I|
|00000590| 6e 73 69 64 65 20 4d 61 | 63 3a 53 6f 75 6e 64 2e |nside Ma|c:Sound.|
|000005a0| 20 55 73 65 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f | Use Vid|eoToolbo|
|000005b0| 78 20 43 72 65 61 74 65 | 54 72 69 61 6c 73 53 6e |x Create|TrialsSn|
|000005c0| 64 73 2e 63 20 61 73 20 | 61 6e 20 65 78 61 6d 70 |ds.c as |an examp|
|000005d0| 6c 65 2e 0d 0d 41 73 20 | 6f 66 20 31 39 39 34 2c |le...As |of 1994,|
|000005e0| 20 74 68 65 20 41 70 70 | 6c 65 20 53 6f 75 6e 64 | the App|le Sound|
|000005f0| 20 4d 61 6e 61 67 65 72 | 20 68 61 73 20 74 68 65 | Manager| has the|
|00000600| 20 61 6e 6e 6f 79 69 6e | 67 20 63 68 61 72 61 63 | annoyin|g charac|
|00000610| 74 65 72 69 73 74 69 63 | 20 6f 66 20 69 6e 73 69 |teristic| of insi|
|00000620| 73 74 69 6e 67 20 6f 6e | 20 6c 6f 61 64 69 6e 67 |sting on| loading|
|00000630| 0d 61 6e 79 20 73 79 6e | 74 68 20 74 68 61 74 27 |.any syn|th that'|
|00000640| 73 20 6d 65 6e 74 69 6f | 6e 65 64 20 69 6e 20 61 |s mentio|ned in a|
|00000650| 20 73 6e 64 20 72 65 73 | 6f 75 72 63 65 2c 20 65 | snd res|ource, e|
|00000660| 76 65 6e 20 69 66 20 74 | 68 61 74 20 73 79 6e 74 |ven if t|hat synt|
|00000670| 68 20 69 73 20 61 6c 72 | 65 61 64 79 20 6c 6f 61 |h is alr|eady loa|
|00000680| 64 65 64 2c 0d 77 68 69 | 63 68 20 63 61 75 73 65 |ded,.whi|ch cause|
|00000690| 73 20 61 6e 20 65 72 72 | 6f 72 2e 20 54 68 69 73 |s an err|or. This|
|000006a0| 20 6d 61 6b 65 73 20 69 | 74 20 6e 65 63 65 73 73 | makes i|t necess|
|000006b0| 61 72 79 20 74 6f 20 64 | 69 73 70 6f 73 65 20 6f |ary to d|ispose o|
|000006c0| 66 20 61 6e 64 20 72 65 | 63 72 65 61 74 65 20 74 |f and re|create t|
|000006d0| 68 65 20 0d 73 6e 64 20 | 63 68 61 6e 6e 65 6c 20 |he .snd |channel |
|000006e0| 62 65 66 6f 72 65 20 65 | 61 63 68 20 6e 65 77 20 |before e|ach new |
|000006f0| 73 6f 75 6e 64 2c 20 77 | 68 69 63 68 20 74 68 65 |sound, w|hich the|
|00000700| 73 65 20 72 6f 75 74 69 | 6e 65 73 20 64 6f 2e 20 |se routi|nes do. |
|00000710| 0d 0d 4e 4f 54 45 3a 20 | 54 68 65 20 73 6e 64 20 |..NOTE: |The snd |
|00000720| 69 73 20 6e 6f 74 20 6c | 6f 63 6b 65 64 20 77 68 |is not l|ocked wh|
|00000730| 69 6c 65 20 62 65 69 6e | 67 20 70 6c 61 79 65 64 |ile bein|g played|
|00000740| 2e 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 20 77 |. I don'|t know w|
|00000750| 68 65 74 68 65 72 20 74 | 68 61 74 27 73 20 6e 65 |hether t|hat's ne|
|00000760| 63 65 73 73 61 72 79 2e | 0d 49 74 20 73 65 65 6d |cessary.|.It seem|
|00000770| 73 20 74 6f 20 77 6f 72 | 6b 20 6f 6b 20 61 73 20 |s to wor|k ok as |
|00000780| 69 73 2c 20 6f 6e 20 62 | 6f 74 68 20 36 38 6b 20 |is, on b|oth 68k |
|00000790| 61 6e 64 20 70 70 63 20 | 6d 61 63 68 69 6e 65 73 |and ppc |machines|
|000007a0| 2c 20 62 75 74 20 49 20 | 68 61 76 65 6e 27 74 20 |, but I |haven't |
|000007b0| 73 74 72 65 73 73 65 64 | 20 69 74 2e 20 49 6e 0d |stressed| it. In.|
|000007c0| 70 61 72 74 69 63 75 6c | 61 72 2c 20 49 20 64 6f |particul|ar, I do|
|000007d0| 6e 27 74 20 6d 6f 76 65 | 20 6d 65 6d 6f 72 79 20 |n't move| memory |
|000007e0| 77 68 69 6c 65 20 74 68 | 65 20 73 6f 75 6e 64 20 |while th|e sound |
|000007f0| 69 73 20 70 6c 61 79 69 | 6e 67 2e 20 49 20 70 72 |is playi|ng. I pr|
|00000800| 6f 62 61 62 6c 79 20 6f | 75 67 68 74 20 74 6f 20 |obably o|ught to |
|00000810| 6c 6f 63 6b 20 69 74 0d | 64 6f 77 6e 20 61 6e 64 |lock it.|down and|
|00000820| 20 48 6f 6c 64 4d 65 6d | 6f 72 79 20 6f 6e 20 74 | HoldMem|ory on t|
|00000830| 68 65 20 73 6e 64 20 77 | 68 69 6c 65 20 69 74 27 |he snd w|hile it'|
|00000840| 73 20 70 6c 61 79 69 6e | 67 2e 20 48 6f 77 65 76 |s playin|g. Howev|
|00000850| 65 72 2c 20 74 68 61 74 | 20 77 6f 75 6c 64 20 63 |er, that| would c|
|00000860| 6f 6d 70 6c 69 63 61 74 | 65 20 74 68 65 0d 70 72 |omplicat|e the.pr|
|00000870| 6f 67 72 61 6d 20 73 6c | 69 67 68 74 6c 79 2c 20 |ogram sl|ightly, |
|00000880| 73 69 6e 63 65 20 74 68 | 65 20 6c 6f 63 6b 69 6e |since th|e lockin|
|00000890| 67 20 61 6e 64 20 75 6e | 6c 6f 63 6b 69 6e 67 20 |g and un|locking |
|000008a0| 77 6f 75 6c 64 20 68 61 | 76 65 20 74 6f 20 68 61 |would ha|ve to ha|
|000008b0| 70 70 65 6e 20 69 6e 20 | 64 69 66 66 65 72 65 6e |ppen in |differen|
|000008c0| 74 0d 72 6f 75 74 69 6e | 65 73 2c 20 62 65 6c 6f |t.routin|es, belo|
|000008d0| 77 2c 20 61 6e 64 20 74 | 68 65 20 61 64 64 72 65 |w, and t|he addre|
|000008e0| 73 73 20 6f 66 20 74 68 | 65 20 73 6e 64 20 77 6f |ss of th|e snd wo|
|000008f0| 75 6c 64 20 68 61 76 65 | 20 74 6f 20 62 65 20 63 |uld have| to be c|
|00000900| 6f 6d 6d 75 6e 69 63 61 | 74 65 64 20 62 65 74 77 |ommunica|ted betw|
|00000910| 65 65 6e 20 74 68 65 6d | 2c 20 0d 70 72 65 73 75 |een them|, .presu|
|00000920| 6d 61 62 6c 79 20 62 79 | 20 61 20 76 61 72 69 61 |mably by| a varia|
|00000930| 62 6c 65 20 67 6c 6f 62 | 61 6c 20 74 6f 20 74 68 |ble glob|al to th|
|00000940| 69 73 20 66 69 6c 65 2e | 0d 0d 48 49 53 54 4f 52 |is file.|..HISTOR|
|00000950| 59 3a 0d 33 2f 33 30 2f | 39 32 09 64 67 70 20 77 |Y:.3/30/|92.dgp w|
|00000960| 72 6f 74 65 20 69 74 2e | 0d 34 2f 31 2f 39 32 09 |rote it.|.4/1/92.|
|00000970| 64 67 70 09 72 65 6e 61 | 6d 65 64 20 69 74 20 61 |dgp.rena|med it a|
|00000980| 6e 64 20 63 6f 6d 6d 65 | 6e 74 65 64 20 6f 75 74 |nd comme|nted out|
|00000990| 20 74 68 65 20 70 72 69 | 6e 74 66 27 73 2e 0d 37 | the pri|ntf's..7|
|000009a0| 2f 39 2f 39 33 09 64 67 | 70 20 54 65 73 74 20 4d |/9/93.dg|p Test M|
|000009b0| 41 54 4c 41 42 20 69 6e | 20 69 66 28 29 20 69 6e |ATLAB in| if() in|
|000009c0| 73 74 65 61 64 20 6f 66 | 20 23 69 66 2e 20 0d 35 |stead of| #if. .5|
|000009d0| 2f 32 38 2f 39 34 20 64 | 67 70 20 4d 61 64 65 20 |/28/94 d|gp Made |
|000009e0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|000009f0| 41 70 70 6c 65 27 73 20 | 55 6e 69 76 65 72 73 61 |Apple's |Universa|
|00000a00| 6c 20 48 65 61 64 65 72 | 73 2e 20 54 68 61 6e 6b |l Header|s. Thank|
|00000a10| 73 20 74 6f 20 42 6f 62 | 20 44 6f 75 67 68 65 72 |s to Bob| Dougher|
|00000a20| 74 79 20 0d 28 77 6f 6c | 66 67 61 6e 67 40 63 61 |ty .(wol|fgang@ca|
|00000a30| 74 73 2e 75 63 73 63 2e | 65 64 75 29 20 66 6f 72 |ts.ucsc.|edu) for|
|00000a40| 20 72 65 70 6f 72 74 69 | 6e 67 20 74 68 65 20 69 | reporti|ng the i|
|00000a50| 6e 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 2e 0d |ncompati|bility..|
|00000a60| 39 2f 35 2f 39 34 20 64 | 67 70 20 72 65 6d 6f 76 |9/5/94 d|gp remov|
|00000a70| 65 64 20 61 73 73 75 6d | 70 74 69 6f 6e 20 69 6e |ed assum|ption in|
|00000a80| 20 70 72 69 6e 74 66 27 | 73 20 74 68 61 74 20 69 | printf'|s that i|
|00000a90| 6e 74 3d 3d 73 68 6f 72 | 74 2e 0d 39 2f 31 30 2f |nt==shor|t..9/10/|
|00000aa0| 39 34 20 64 67 70 20 63 | 6f 73 6d 65 74 69 63 0d |94 dgp c|osmetic.|
|00000ab0| 31 30 2f 35 2f 39 34 20 | 64 67 70 20 73 69 6d 70 |10/5/94 |dgp simp|
|00000ac0| 6c 69 66 69 65 64 20 53 | 6e 64 43 61 6c 6c 42 61 |lified S|ndCallBa|
|00000ad0| 63 6b 31 20 75 6e 74 69 | 6c 20 69 74 20 73 74 6f |ck1 unti|l it sto|
|00000ae0| 70 70 65 64 20 63 72 61 | 73 68 69 6e 67 20 77 68 |pped cra|shing wh|
|00000af0| 65 6e 20 49 20 72 75 6e | 20 6e 61 74 69 76 65 20 |en I run| native |
|00000b00| 6f 6e 20 70 70 63 2e 0d | 31 30 2f 32 37 2f 39 34 |on ppc..|10/27/94|
|00000b10| 20 64 67 70 20 49 74 20 | 69 73 20 76 65 72 79 20 | dgp It |is very |
|00000b20| 61 6e 6e 6f 79 69 6e 67 | 20 66 6f 72 20 74 68 65 |annoying| for the|
|00000b30| 20 6d 61 63 68 69 6e 65 | 20 74 6f 20 63 72 61 73 | machine| to cras|
|00000b40| 68 20 61 6e 79 74 69 6d | 65 20 79 6f 75 20 74 72 |h anytim|e you tr|
|00000b50| 79 20 74 6f 20 71 75 69 | 74 20 79 6f 75 72 0d 61 |y to qui|t your.a|
|00000b60| 70 70 6c 69 63 61 74 69 | 6f 6e 20 62 79 20 65 73 |pplicati|on by es|
|00000b70| 63 61 70 69 6e 67 20 76 | 69 61 20 4d 61 63 73 42 |caping v|ia MacsB|
|00000b80| 75 67 73 20 65 73 63 61 | 70 65 20 74 6f 20 73 68 |ugs esca|pe to sh|
|00000b90| 65 6c 6c 2e 20 54 68 65 | 20 70 72 6f 62 6c 65 6d |ell. The| problem|
|00000ba0| 20 69 73 20 74 68 61 74 | 20 43 6f 64 65 57 61 72 | is that| CodeWar|
|00000bb0| 72 69 6f 72 20 0d 64 6f | 65 73 6e 27 74 20 61 74 |rior .do|esn't at|
|00000bc0| 74 61 63 68 20 74 68 65 | 20 61 74 65 78 69 74 28 |tach the| atexit(|
|00000bd0| 29 20 74 61 73 6b 73 20 | 74 6f 20 5f 45 73 63 61 |) tasks |to _Esca|
|00000be0| 70 65 54 6f 53 68 65 6c | 6c 2e 20 53 6f 20 49 20 |peToShel|l. So I |
|00000bf0| 64 6f 20 69 74 20 68 65 | 72 65 2e 20 0d 37 2f 31 |do it he|re. .7/1|
|00000c00| 2f 39 35 20 64 67 70 20 | 6a 75 73 74 20 63 61 6c |/95 dgp |just cal|
|00000c10| 6c 20 41 74 45 78 69 74 | 54 6f 53 68 65 6c 6c 28 |l AtExit|ToShell(|
|00000c20| 29 2c 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 63 |), witho|ut any c|
|00000c30| 6f 6e 64 69 74 69 6f 6e | 61 6c 73 2e 20 53 70 65 |ondition|als. Spe|
|00000c40| 63 69 61 6c 20 63 61 73 | 65 73 2c 20 65 2e 67 2e |cial cas|es, e.g.|
|00000c50| 20 4d 41 54 4c 41 42 2c | 0d 61 72 65 20 68 61 6e | MATLAB,|.are han|
|00000c60| 64 6c 65 64 20 69 6e 20 | 41 74 45 78 69 74 54 6f |dled in |AtExitTo|
|00000c70| 53 68 65 6c 6c 2e 63 2e | 0d 2a 2f 0d 23 69 6e 63 |Shell.c.|.*/.#inc|
|00000c80| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00000c90| 6f 78 2e 68 22 0d 2f 2f | 23 69 6e 63 6c 75 64 65 |ox.h".//|#include|
|00000ca0| 20 3c 53 6f 75 6e 64 2e | 68 3e 0d 73 74 61 74 69 | <Sound.|h>.stati|
|00000cb0| 63 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 53 6e |c pascal| void Sn|
|00000cc0| 64 43 61 6c 6c 42 61 63 | 6b 31 28 53 6e 64 43 68 |dCallBac|k1(SndCh|
|00000cd0| 61 6e 6e 65 6c 50 74 72 | 20 63 68 61 6e 6e 65 6c |annelPtr| channel|
|00000ce0| 50 74 72 2c 53 6e 64 43 | 6f 6d 6d 61 6e 64 20 63 |Ptr,SndC|ommand c|
|00000cf0| 6f 6d 6d 61 6e 64 29 3b | 0d 73 74 61 74 69 63 20 |ommand);|.static |
|00000d00| 53 6e 64 43 68 61 6e 6e | 65 6c 20 2a 63 68 61 6e |SndChann|el *chan|
|00000d10| 6e 65 6c 50 74 72 3d 4e | 55 4c 4c 2c 63 68 61 6e |nelPtr=N|ULL,chan|
|00000d20| 6e 65 6c 3b 0d 73 74 61 | 74 69 63 20 53 6e 64 43 |nel;.sta|tic SndC|
|00000d30| 6f 6d 6d 61 6e 64 20 63 | 61 6c 6c 42 61 63 6b 3b |ommand c|allBack;|
|00000d40| 0d 23 69 66 20 21 55 4e | 49 56 45 52 53 41 4c 5f |.#if !UN|IVERSAL_|
|00000d50| 48 45 41 44 45 52 53 0d | 09 23 64 65 66 69 6e 65 |HEADERS.|.#define|
|00000d60| 20 4e 65 77 53 6e 64 43 | 61 6c 6c 42 61 63 6b 50 | NewSndC|allBackP|
|00000d70| 72 6f 63 20 28 53 6e 64 | 43 61 6c 6c 42 61 63 6b |roc (Snd|CallBack|
|00000d80| 55 50 50 29 0d 09 74 79 | 70 65 64 65 66 20 50 72 |UPP)..ty|pedef Pr|
|00000d90| 6f 63 50 74 72 20 53 6e | 64 43 61 6c 6c 42 61 63 |ocPtr Sn|dCallBac|
|00000da0| 6b 55 50 50 3b 0d 23 65 | 6e 64 69 66 0d 23 69 66 |kUPP;.#e|ndif.#if|
|00000db0| 20 55 4e 49 56 45 52 53 | 41 4c 5f 48 45 41 44 45 | UNIVERS|AL_HEADE|
|00000dc0| 52 53 3c 32 0d 09 23 64 | 65 66 69 6e 65 20 53 6e |RS<2..#d|efine Sn|
|00000dd0| 64 4c 69 73 74 48 61 6e | 64 6c 65 20 48 61 6e 64 |dListHan|dle Hand|
|00000de0| 6c 65 0d 23 65 6e 64 69 | 66 0d 0d 4f 53 45 72 72 |le.#endi|f..OSErr|
|00000df0| 20 53 6e 64 50 6c 61 79 | 31 28 48 61 6e 64 6c 65 | SndPlay|1(Handle|
|00000e00| 20 73 6e 64 29 0d 7b 0d | 09 69 6e 74 20 65 72 72 | snd).{.|.int err|
|00000e10| 6f 72 3d 30 3b 0d 09 73 | 74 61 74 69 63 20 42 6f |or=0;..s|tatic Bo|
|00000e20| 6f 6c 65 61 6e 20 66 69 | 72 73 74 54 69 6d 65 3d |olean fi|rstTime=|
|00000e30| 31 3b 0d 09 73 74 61 74 | 69 63 20 53 6e 64 43 61 |1;..stat|ic SndCa|
|00000e40| 6c 6c 42 61 63 6b 55 50 | 50 20 73 6e 64 43 61 6c |llBackUP|P sndCal|
|00000e50| 6c 42 61 63 6b 50 72 6f | 63 3b 0d 0d 09 69 66 28 |lBackPro|c;...if(|
|00000e60| 73 6e 64 21 3d 4e 55 4c | 4c 29 48 4e 6f 50 75 72 |snd!=NUL|L)HNoPur|
|00000e70| 67 65 28 73 6e 64 29 3b | 20 2f 2f 20 6d 61 6b 65 |ge(snd);| // make|
|00000e80| 20 73 75 72 65 20 73 6e | 64 20 69 73 20 6e 6f 74 | sure sn|d is not|
|00000e90| 20 70 75 72 67 65 64 20 | 77 68 69 6c 65 20 77 65 | purged |while we|
|00000ea0| 27 72 65 20 61 6c 6c 6f | 63 61 74 69 6e 67 20 6d |'re allo|cating m|
|00000eb0| 65 6d 6f 72 79 0d 09 69 | 66 28 66 69 72 73 74 54 |emory..i|f(firstT|
|00000ec0| 69 6d 65 29 7b 0d 09 09 | 73 6e 64 43 61 6c 6c 42 |ime){...|sndCallB|
|00000ed0| 61 63 6b 50 72 6f 63 3d | 4e 65 77 53 6e 64 43 61 |ackProc=|NewSndCa|
|00000ee0| 6c 6c 42 61 63 6b 50 72 | 6f 63 28 53 6e 64 43 61 |llBackPr|oc(SndCa|
|00000ef0| 6c 6c 42 61 63 6b 31 29 | 3b 0d 09 09 41 74 45 78 |llBack1)|;...AtEx|
|00000f00| 69 74 54 6f 53 68 65 6c | 6c 28 53 6e 64 53 74 6f |itToShel|l(SndSto|
|00000f10| 70 31 29 3b 0d 09 09 66 | 69 72 73 74 54 69 6d 65 |p1);...f|irstTime|
|00000f20| 3d 30 3b 0d 09 7d 0d 09 | 69 66 28 63 68 61 6e 6e |=0;..}..|if(chann|
|00000f30| 65 6c 50 74 72 21 3d 4e | 55 4c 4c 29 65 72 72 6f |elPtr!=N|ULL)erro|
|00000f40| 72 3d 53 6e 64 44 69 73 | 70 6f 73 65 43 68 61 6e |r=SndDis|poseChan|
|00000f50| 6e 65 6c 28 63 68 61 6e | 6e 65 6c 50 74 72 2c 46 |nel(chan|nelPtr,F|
|00000f60| 41 4c 53 45 29 3b 09 2f | 2f 20 77 61 69 74 20 74 |ALSE);./|/ wait t|
|00000f70| 69 6c 6c 20 64 6f 6e 65 | 0d 09 63 68 61 6e 6e 65 |ill done|..channe|
|00000f80| 6c 50 74 72 3d 4e 55 4c | 4c 3b 0d 09 69 66 28 65 |lPtr=NUL|L;..if(e|
|00000f90| 72 72 6f 72 29 72 65 74 | 75 72 6e 20 65 72 72 6f |rror)ret|urn erro|
|00000fa0| 72 3b 0d 09 69 66 28 73 | 6e 64 3d 3d 4e 55 4c 4c |r;..if(s|nd==NULL|
|00000fb0| 29 72 65 74 75 72 6e 20 | 30 3b 0d 09 69 66 28 31 |)return |0;..if(1|
|00000fc0| 29 65 72 72 6f 72 3d 53 | 6e 64 4e 65 77 43 68 61 |)error=S|ndNewCha|
|00000fd0| 6e 6e 65 6c 28 26 63 68 | 61 6e 6e 65 6c 50 74 72 |nnel(&ch|annelPtr|
|00000fe0| 2c 30 2c 30 4c 2c 73 6e | 64 43 61 6c 6c 42 61 63 |,0,0L,sn|dCallBac|
|00000ff0| 6b 50 72 6f 63 29 3b 09 | 2f 2f 20 61 6c 6c 6f 63 |kProc);.|// alloc|
|00001000| 61 74 65 73 20 73 70 61 | 63 65 20 66 6f 72 20 31 |ates spa|ce for 1|
|00001010| 32 38 20 73 6e 64 73 2e | 0d 09 65 6c 73 65 7b 0d |28 snds.|..else{.|
|00001020| 09 09 63 68 61 6e 6e 65 | 6c 50 74 72 3d 26 63 68 |..channe|lPtr=&ch|
|00001030| 61 6e 6e 65 6c 3b 0d 09 | 09 63 68 61 6e 6e 65 6c |annel;..|.channel|
|00001040| 50 74 72 2d 3e 71 4c 65 | 6e 67 74 68 3d 31 30 3b |Ptr->qLe|ngth=10;|
|00001050| 09 2f 2f 20 68 6f 77 20 | 6d 61 6e 79 20 73 6e 64 |.// how |many snd|
|00001060| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 61 6c 6c | command|s to all|
|00001070| 6f 77 20 73 70 61 63 65 | 20 66 6f 72 2e 20 43 72 |ow space| for. Cr|
|00001080| 65 61 74 65 54 72 69 61 | 6c 53 6e 64 73 2e 63 20 |eateTria|lSnds.c |
|00001090| 73 6e 64 73 20 75 73 65 | 20 34 2e 0d 09 09 65 72 |snds use| 4....er|
|000010a0| 72 6f 72 3d 53 6e 64 4e | 65 77 43 68 61 6e 6e 65 |ror=SndN|ewChanne|
|000010b0| 6c 28 26 63 68 61 6e 6e | 65 6c 50 74 72 2c 30 2c |l(&chann|elPtr,0,|
|000010c0| 30 4c 2c 73 6e 64 43 61 | 6c 6c 42 61 63 6b 50 72 |0L,sndCa|llBackPr|
|000010d0| 6f 63 29 3b 0d 09 09 69 | 66 28 65 72 72 6f 72 29 |oc);...i|f(error)|
|000010e0| 63 68 61 6e 6e 65 6c 50 | 74 72 3d 4e 55 4c 4c 3b |channelP|tr=NULL;|
|000010f0| 0d 09 7d 0d 09 69 66 28 | 65 72 72 6f 72 29 7b 0d |..}..if(|error){.|
|00001100| 09 09 70 72 69 6e 74 66 | 28 22 25 73 20 25 64 3a |..printf|("%s %d:|
|00001110| 53 6e 64 4e 65 77 43 68 | 61 6e 6e 65 6c 20 66 61 |SndNewCh|annel fa|
|00001120| 69 6c 65 64 20 77 69 74 | 68 20 65 72 72 6f 72 20 |iled wit|h error |
|00001130| 25 64 5c 30 30 37 5c 6e | 22 2c 5f 5f 46 49 4c 45 |%d\007\n|",__FILE|
|00001140| 5f 5f 2c 5f 5f 4c 49 4e | 45 5f 5f 2c 65 72 72 6f |__,__LIN|E__,erro|
|00001150| 72 29 3b 0d 09 09 72 65 | 74 75 72 6e 20 65 72 72 |r);...re|turn err|
|00001160| 6f 72 3b 0d 09 7d 0d 09 | 65 72 72 6f 72 3d 53 6e |or;..}..|error=Sn|
|00001170| 64 50 6c 61 79 28 63 68 | 61 6e 6e 65 6c 50 74 72 |dPlay(ch|annelPtr|
|00001180| 2c 28 53 6e 64 4c 69 73 | 74 48 61 6e 64 6c 65 29 |,(SndLis|tHandle)|
|00001190| 73 6e 64 2c 54 52 55 45 | 29 3b 0d 09 69 66 28 65 |snd,TRUE|);..if(e|
|000011a0| 72 72 6f 72 29 7b 0d 09 | 09 70 72 69 6e 74 66 28 |rror){..|.printf(|
|000011b0| 22 25 73 20 25 64 3a 53 | 6e 64 50 6c 61 79 20 66 |"%s %d:S|ndPlay f|
|000011c0| 61 69 6c 65 64 20 77 69 | 74 68 20 65 72 72 6f 72 |ailed wi|th error|
|000011d0| 20 25 64 5c 30 30 37 5c | 6e 22 2c 5f 5f 46 49 4c | %d\007\|n",__FIL|
|000011e0| 45 5f 5f 2c 5f 5f 4c 49 | 4e 45 5f 5f 2c 65 72 72 |E__,__LI|NE__,err|
|000011f0| 6f 72 29 3b 0d 09 09 72 | 65 74 75 72 6e 20 65 72 |or);...r|eturn er|
|00001200| 72 6f 72 3b 0d 09 7d 0d | 09 63 61 6c 6c 42 61 63 |ror;..}.|.callBac|
|00001210| 6b 2e 63 6d 64 3d 63 61 | 6c 6c 42 61 63 6b 43 6d |k.cmd=ca|llBackCm|
|00001220| 64 3b 0d 09 63 61 6c 6c | 42 61 63 6b 2e 70 61 72 |d;..call|Back.par|
|00001230| 61 6d 31 3d 30 3b 0d 09 | 65 72 72 6f 72 3d 53 6e |am1=0;..|error=Sn|
|00001240| 64 44 6f 43 6f 6d 6d 61 | 6e 64 28 63 68 61 6e 6e |dDoComma|nd(chann|
|00001250| 65 6c 50 74 72 2c 26 63 | 61 6c 6c 42 61 63 6b 2c |elPtr,&c|allBack,|
|00001260| 46 41 4c 53 45 29 3b 0d | 09 69 66 28 65 72 72 6f |FALSE);.|.if(erro|
|00001270| 72 29 70 72 69 6e 74 66 | 28 22 25 73 20 25 64 3a |r)printf|("%s %d:|
|00001280| 53 6e 64 44 6f 43 6f 6d | 6d 61 6e 64 20 66 61 69 |SndDoCom|mand fai|
|00001290| 6c 65 64 20 77 69 74 68 | 20 65 72 72 6f 72 20 25 |led with| error %|
|000012a0| 64 5c 30 30 37 5c 6e 22 | 2c 5f 5f 46 49 4c 45 5f |d\007\n"|,__FILE_|
|000012b0| 5f 2c 5f 5f 4c 49 4e 45 | 5f 5f 2c 65 72 72 6f 72 |_,__LINE|__,error|
|000012c0| 29 3b 0d 09 72 65 74 75 | 72 6e 20 65 72 72 6f 72 |);..retu|rn error|
|000012d0| 3b 0d 7d 0d 0d 76 6f 69 | 64 20 53 6e 64 53 74 6f |;.}..voi|d SndSto|
|000012e0| 70 31 28 76 6f 69 64 29 | 0d 7b 0d 09 69 66 28 63 |p1(void)|.{..if(c|
|000012f0| 68 61 6e 6e 65 6c 50 74 | 72 21 3d 4e 55 4c 4c 29 |hannelPt|r!=NULL)|
|00001300| 53 6e 64 44 69 73 70 6f | 73 65 43 68 61 6e 6e 65 |SndDispo|seChanne|
|00001310| 6c 28 63 68 61 6e 6e 65 | 6c 50 74 72 2c 54 52 55 |l(channe|lPtr,TRU|
|00001320| 45 29 3b 09 09 2f 2f 20 | 69 6d 6d 65 64 69 61 74 |E);..// |immediat|
|00001330| 65 6c 79 0d 09 63 68 61 | 6e 6e 65 6c 50 74 72 3d |ely..cha|nnelPtr=|
|00001340| 4e 55 4c 4c 3b 0d 7d 0d | 0d 73 68 6f 72 74 20 53 |NULL;.}.|.short S|
|00001350| 6e 64 44 6f 6e 65 31 28 | 76 6f 69 64 29 0d 2f 2f |ndDone1(|void).//|
|00001360| 20 52 65 74 75 72 6e 73 | 20 31 20 69 66 20 74 68 | Returns| 1 if th|
|00001370| 65 20 6c 61 73 74 20 73 | 6f 75 6e 64 20 69 6e 69 |e last s|ound ini|
|00001380| 74 69 61 74 65 64 20 62 | 79 20 53 6e 64 50 6c 61 |tiated b|y SndPla|
|00001390| 79 31 20 68 61 73 20 66 | 69 6e 69 73 68 65 64 2e |y1 has f|inished.|
|000013a0| 20 4f 74 68 65 72 77 69 | 73 65 20 30 2e 0d 7b 0d | Otherwi|se 0..{.|
|000013b0| 09 72 65 74 75 72 6e 20 | 63 61 6c 6c 42 61 63 6b |.return |callBack|
|000013c0| 2e 70 61 72 61 6d 31 3b | 0d 7d 0d 0d 23 69 66 20 |.param1;|.}..#if |
|000013d0| 28 54 48 49 4e 4b 5f 43 | 20 7c 7c 20 54 48 49 4e |(THINK_C| || THIN|
|000013e0| 4b 5f 43 50 4c 55 53 20 | 7c 7c 20 53 59 4d 41 4e |K_CPLUS ||| SYMAN|
|000013f0| 54 45 43 5f 43 29 0d 09 | 23 70 72 61 67 6d 61 20 |TEC_C)..|#pragma |
|00001400| 6f 70 74 69 6f 6e 73 28 | 21 70 72 6f 66 69 6c 65 |options(|!profile|
|00001410| 29 09 2f 2f 20 44 69 73 | 61 62 6c 65 20 70 72 6f |).// Dis|able pro|
|00001420| 66 69 6c 69 6e 67 20 62 | 65 63 61 75 73 65 20 41 |filing b|ecause A|
|00001430| 35 20 6d 61 79 20 62 65 | 20 69 6e 76 61 6c 69 64 |5 may be| invalid|
|00001440| 2e 0d 23 65 6e 64 69 66 | 0d 23 69 66 20 5f 5f 4d |..#endif|.#if __M|
|00001450| 57 45 52 4b 53 5f 5f 20 | 26 26 20 5f 5f 70 72 6f |WERKS__ |&& __pro|
|00001460| 66 69 6c 65 5f 5f 0d 09 | 23 70 72 61 67 6d 61 20 |file__..|#pragma |
|00001470| 70 72 6f 66 69 6c 65 20 | 6f 66 66 09 09 09 2f 2f |profile |off...//|
|00001480| 20 6f 6e 20 36 38 6b 20 | 69 74 20 77 6f 75 6c 64 | on 68k |it would|
|00001490| 20 62 65 20 64 61 6e 67 | 65 72 6f 75 73 20 74 6f | be dang|erous to|
|000014a0| 20 63 61 6c 6c 20 74 68 | 65 20 70 72 6f 66 69 6c | call th|e profil|
|000014b0| 65 72 20 66 72 6f 6d 20 | 68 65 72 65 0d 23 65 6e |er from |here.#en|
|000014c0| 64 69 66 0d 0d 73 74 61 | 74 69 63 20 70 61 73 63 |dif..sta|tic pasc|
|000014d0| 61 6c 20 76 6f 69 64 20 | 53 6e 64 43 61 6c 6c 42 |al void |SndCallB|
|000014e0| 61 63 6b 31 28 53 6e 64 | 43 68 61 6e 6e 65 6c 50 |ack1(Snd|ChannelP|
|000014f0| 74 72 20 63 68 61 6e 6e | 65 6c 50 74 72 2c 53 6e |tr chann|elPtr,Sn|
|00001500| 64 43 6f 6d 6d 61 6e 64 | 20 63 6f 6d 6d 61 6e 64 |dCommand| command|
|00001510| 29 0d 2f 2f 20 4c 6f 61 | 64 20 61 20 73 68 6f 72 |).// Loa|d a shor|
|00001520| 74 20 69 6e 74 2e 0d 2f | 2f 20 43 61 6c 6c 65 64 |t int../|/ Called|
|00001530| 20 62 61 63 6b 20 62 79 | 20 73 6f 75 6e 64 20 6d | back by| sound m|
|00001540| 61 6e 61 67 65 72 2e 20 | 20 4c 65 74 73 20 75 73 |anager. | Lets us|
|00001550| 20 6b 6e 6f 77 20 77 68 | 65 6e 20 73 6f 75 6e 64 | know wh|en sound|
|00001560| 20 69 73 20 64 6f 6e 65 | 2e 0d 7b 0d 09 63 68 61 | is done|..{..cha|
|00001570| 6e 6e 65 6c 50 74 72 3b | 09 2f 2f 20 70 72 65 76 |nnelPtr;|.// prev|
|00001580| 65 6e 74 20 22 75 6e 75 | 73 65 64 20 61 72 67 75 |ent "unu|sed argu|
|00001590| 6d 65 6e 74 22 20 77 61 | 72 6e 69 6e 67 0d 09 63 |ment" wa|rning..c|
|000015a0| 6f 6d 6d 61 6e 64 2e 70 | 61 72 61 6d 31 3d 31 3b |ommand.p|aram1=1;|
|000015b0| 0d 7d 0d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 00 00 01 00 00 00 01 c6 | 00 00 00 c6 00 00 00 5e |........|.......^|
|00001610| 47 56 43 69 54 45 58 54 | 04 00 00 00 00 00 00 00 |GVCiTEXT|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 0a 53 6e 64 50 6c 61 79 | 31 2e 63 6c 02 00 02 00 |.SndPlay|1.cl....|
|00001640| 54 45 58 54 43 57 49 45 | 01 00 00 28 05 a0 00 00 |TEXTCWIE|...(....|
|00001650| 02 00 54 45 58 54 43 57 | 49 45 01 00 00 28 05 a0 |..TEXTCW|IE...(..|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 a5 ff 93 e1 00 00 | 15 34 00 00 02 24 00 00 |........|.4...$..|
|00001680| 00 00 00 00 00 00 00 00 | 00 00 00 90 25 01 47 56 |........|....%.GV|
|00001690| 63 69 54 45 58 54 03 00 | 00 00 00 00 00 00 00 00 |ciTEXT..|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 c5 25 01 | 48 72 6d 74 41 50 50 4c |......%.|HrmtAPPL|
|000016c0| 03 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 1a |........|........|
|000016e0| 25 01 49 6e 55 73 63 64 | 65 76 01 00 00 00 00 00 |%.InUscd|ev......|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00001710| 6e 61 63 6f 00 00 00 00 | 01 9a b4 70 00 00 00 00 |naco....|...p....|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|00001730| 00 04 00 3e 00 04 01 eb | 02 b7 00 3e 00 04 01 eb |...>....|...>....|
|00001740| 02 b7 ad dc 10 e1 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 4c | 00 04 00 00 0c a2 00 00 |.......L|........|
|00001760| 0c ad 0b 53 6e 64 43 61 | 6c 6c 42 61 63 6b 00 00 |...SndCa|llBack..|
|00001770| 0b bd 00 00 0b c5 09 53 | 6e 64 44 6f 6e 65 31 00 |.......S|ndDone1.|
|00001780| 00 00 07 40 00 00 07 48 | 09 53 6e 64 50 6c 61 79 |...@...H|.SndPlay|
|00001790| 31 00 00 00 0b 51 00 00 | 0b 59 09 53 6e 64 53 74 |1....Q..|.Y.SndSt|
|000017a0| 6f 70 31 00 00 00 00 1e | 00 3e 00 04 01 eb 02 b7 |op1.....|.>......|
|000017b0| 00 3e 00 04 01 eb 02 b7 | 00 00 00 00 00 00 00 00 |.>......|........|
|000017c0| 00 00 00 00 00 00 00 00 | 01 00 00 00 01 c6 00 00 |........|........|
|000017d0| 00 c6 00 00 00 5e 01 8e | e8 c8 3c 3a 00 00 00 1c |.....^..|..<:....|
|000017e0| 00 5e 00 01 4d 50 53 52 | 00 02 00 12 4d 57 42 42 |.^..MPSR|....MWBB|
|000017f0| 00 00 00 36 03 ed ff ff | 00 00 00 08 00 00 00 00 |...6....|........|
|00001800| 03 ef ff ff 00 00 00 54 | 00 00 00 00 03 f0 ff ff |.......T|........|
|00001810| 00 00 00 a4 01 91 44 c8 | 03 f0 ff ff 00 00 00 00 |......D.|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+